Optimal. Leaf size=32 \[ \frac {i \sec ^3(c+d x)}{3 d (a+i a \tan (c+d x))^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 32, normalized size of antiderivative = 1.00, number of steps
used = 1, number of rules used = 1, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.042, Rules used = {3569}
\begin {gather*} \frac {i \sec ^3(c+d x)}{3 d (a+i a \tan (c+d x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3569
Rubi steps
\begin {align*} \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^3} \, dx &=\frac {i \sec ^3(c+d x)}{3 d (a+i a \tan (c+d x))^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 32, normalized size = 1.00 \begin {gather*} \frac {i \sec ^3(c+d x)}{3 d (a+i a \tan (c+d x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.31, size = 57, normalized size = 1.78
method | result | size |
risch | \(\frac {i {\mathrm e}^{-3 i \left (d x +c \right )}}{3 a^{3} d}\) | \(19\) |
derivativedivides | \(\frac {-\frac {8}{3 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}+\frac {2}{-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}+\frac {4 i}{\left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}}{a^{3} d}\) | \(57\) |
default | \(\frac {-\frac {8}{3 \left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{3}}+\frac {2}{-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}+\frac {4 i}{\left (-i+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}}{a^{3} d}\) | \(57\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 29, normalized size = 0.91 \begin {gather*} \frac {i \, \cos \left (3 \, d x + 3 \, c\right ) + \sin \left (3 \, d x + 3 \, c\right )}{3 \, a^{3} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 17, normalized size = 0.53 \begin {gather*} \frac {i \, e^{\left (-3 i \, d x - 3 i \, c\right )}}{3 \, a^{3} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 80 vs. \(2 (26) = 52\).
time = 0.90, size = 80, normalized size = 2.50 \begin {gather*} \begin {cases} - \frac {\sec ^{3}{\left (c + d x \right )}}{3 a^{3} d \tan ^{3}{\left (c + d x \right )} - 9 i a^{3} d \tan ^{2}{\left (c + d x \right )} - 9 a^{3} d \tan {\left (c + d x \right )} + 3 i a^{3} d} & \text {for}\: d \neq 0 \\\frac {x \sec ^{3}{\left (c \right )}}{\left (i a \tan {\left (c \right )} + a\right )^{3}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.66, size = 36, normalized size = 1.12 \begin {gather*} \frac {2 \, {\left (3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}}{3 \, a^{3} d {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.44, size = 68, normalized size = 2.12 \begin {gather*} -\frac {2\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,3{}\mathrm {i}-\mathrm {i}\right )}{3\,a^3\,d\,\left (-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,1{}\mathrm {i}-3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,3{}\mathrm {i}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________